Fix includes in gtkassistant.c
authorMatthias Clasen <mclasen@redhat.com>
Thu, 17 Feb 2011 17:35:07 +0000 (12:35 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 17 Feb 2011 17:35:07 +0000 (12:35 -0500)
Also fix a bad case in gtk_assistant_accessible_get_n_children.

gtk/gtkassistant.c

index bb32add0aafcc9ab1ccffcbae7d78fefe7eed847..17ecf46a872940972063fab7a86fe586965fb5ae 100644 (file)
@@ -62,7 +62,7 @@
 
 #include "gtkassistant.h"
 
-#include "gtkaccessible.h"
+#include "gtkaccessibleprivate.h"
 #include "gtkbutton.h"
 #include "gtkhbox.h"
 #include "gtkhbbox.h"
@@ -2511,7 +2511,7 @@ gtk_assistant_accessible_get_n_children (AtkObject *accessible)
   if (widget == NULL)
     return 0;
 
-  return g_list_length (GTK_ASSISTANT (accessible)->priv->pages) + 1;
+  return g_list_length (GTK_ASSISTANT (widget)->priv->pages) + 1;
 }
 
 static AtkObject *